package com.factory_project;

public abstract class MotorVehicle {
    private String vehicleId; //车票号
    private String brand; //品牌
    private float perRent;    //每日租价


    //抽象方法
//    public abstract void drive();
    public abstract double calRent(int days);    //计算租金

    public MotorVehicle() {
    }
    public MotorVehicle(String vehicleId, String brand, float perRent) {
        this.vehicleId = vehicleId;
        this.brand = brand;
        this.perRent = perRent;
    }
    public String getVehicleId() {
        return vehicleId;
    }

    public void setVehicleId(String vehicleId) {
        this.vehicleId = vehicleId;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public float getPerRent() {
        return perRent;
    }

    public void setPerRent(int perRent) {
        this.perRent = perRent;
    }



}
